package com.felix.spider.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author felix.ma
 * @create 2018-06-23 17:36
 */
@Component
public class TestTask {
  private final Logger log = LoggerFactory.getLogger(getClass());

//  @Scheduled(fixedRate = 3000)
  public void testTask() {
    System.out.println("定时任务开启");
    log.info("定时任务开始执行");
  }
}
